#ifndef OBSTACLE_H
#define OBSTACLE_H

#include <QGraphicsPixmapItem>
#include<QPointF>

enum ObstacleType{
    OBSTACLE_1,
    OBSTACLE_2,
    OBSTACLE_3
};

class Obstacle : public QGraphicsPixmapItem {
public:

    Obstacle(ObstacleType type=OBSTACLE_1);
    void move();
    bool isOutOfScreen() const;

private:
    static const int MOVE_SPEED = -10;
    ObstacleType type;
};

#endif // OBSTACLE_H
